<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Gallery extends Controller_Common {

	public $template='layout/index';

	public function action_index() {
		$this->buildCarcas();
		$this->template->title .= ' - Галерея';

		$this->template->content = View::factory('pages/gallery', array(
			'catalog' => Model::factory('Categories')->get_main(0),
			'gallery' => Model::factory('Gallery')->get_all()
		));
	}
}